package sg.edu.nus.iss.billing.model.calculation;

import sg.edu.nus.iss.billing.model.BaseModel;
import sg.edu.nus.iss.billing.model.bill.Bill;
import sg.edu.nus.iss.billing.model.charge.IChargable;

/**
 * 
 * @author Thurein, ZiFeng, YinNi
 *
 */
public class PerMonth extends BaseModel implements IChargeMethod {

	private static final long serialVersionUID = -5499812009163015291L;

	@Override
	/**
	 * Get the rate based on the billing month and just simply return the rate.
	 */
	public double calculate(IChargable fee, Bill chargingBill) {
		return fee.getRate().getAmount();
	}

}
